trying to write conditional block statement again with new variable