oh yes.. despite the 2 errors there.. one of which i was not aware of (the second if statement) it works perfectly