finished testing functions