added logic for agruments to methodStructure