added testing functions