adding some testing functions