added else statement to conditional statment section