updated makedata to eliminate redundant inputs
now check correlation