fix code and link format