if then statement now works.