removed BETWEEN in query