implemented SAP partially