fixed parsing else elif