added conversion functions