fixed select statements