confirm logic implemented