added profit counter