add some conversion functions