added ; to end of second if statement