user logic functional for day1