query method moved to private section