else style causing problems