started work on logic