changed parameters to constants