modified testing functions