compute COM