finalise buisness logic