added datatype conversion