fixed filename for if statements