modified assignments for better complex answer