check if delta is negative, if so change to 0

all specs passing