completed the take and loose control functions