fixed blank if statement