modified sql statements