added get constraints fixed multiple call