before cahnging if logic
simpler logic