testing of some separate functions for later use