added a more simple conversion function, lighter