fix code issues p3