simple logic is working out so far