removed the uncessary test function