refactored methodRegisterAssignment to expose a getParameters function