added my if statement for the GET