updated teh get_am method