Ok scan query works