internal testing functions added