added a where in statement