fixed return type (closes #9)