adding else if statment