add helper methods to type