added type(), no tests for it yet