removed error if statement