modification on VisualPercepts.m