assignment api  fix