fixed conflicting if statements in reserved words