added changes to profit controller