else if statement added as a second condition