added format function for sizes