implemented the print function and its helper, also made its helper hidden. both functions work are tested and working properly.