a helper method to wrap text, yet to be implemented