something wrong with end value