adding formatting functions