refines formatting and imports