implemented paremeters passing