patches for return type