finish logic for close project