formating and testing