added code for elif construct