fix bogus preql similar implementation