changed sql yet again