remove unnecessary declaration
update sample rate validation to not be zero