add first logic