made the parameters directive dynamic