fixed an incorrect return boolean