changed heading and added counter