change input as dict in method.analysis