create functions to permform accuracy tests