commented code purchase stuff