removed static, typo, +bug when only one arg