add Outline and Error marker function