i should not be testing like this