fix code issues p4