added convert functions