*removed copy format function
*code cleanup