add dynamic control for calc