fix history. add payment received argument
fixes in history