working on complex parameters