finally fixed problem with 1 extra sample