finished if statement implementation