added support for double type