changed the handling for the delta
using my version