else in wrong place