converted data structure to method calls
formatting