start to do logic