added methods to type class