before select not doing anything anymore