added empty statement and if-else statement