updated documentation
update attribute to handle factors