convert functions add a argument for return type