improving position of samples