fix variable unused error

closes #32