added if-else parser