added initial S1, it doesnt correctly fill out the WHERE part of the query