code formatting and linking