fixed incorrect if
removed lined