changed test function to usable one