removed uneeded sql