edited comment and changed error behavior of DeltaXp
removed magic number