converting ids to_i in queries
converting ids to_i in queries