linted with lintr, passes all tests