to solve the problem with parameter transfering