before implementation of where clause