added else if to header