removed unnecessary select query