- fixed a bug where SAMPLES variable was not being set