added modification on samples