tacking #12
handling NA. closes #12