helps to have the logic in the the right order :\