adding new logic