added in engagement assignment and fixed bug