else statement added to code.