max min and step gamma and c added