making changes to fix ag3