debug draw buffer method