removed undefined comparison