added function for getting format()