removed unneccessary if statement