removed function not used anymore
added new test function