initial implementation of delta