adding function to engaged