adding delta mode functionality