fix functions until 16th sample