code formatting and re-factor join() into an expression