added blank else to if loop