checking if smae function twice returns varied results