removed unnessessary sql statement