renamed some variables
snap test cases