fix undefined reference
formatting