need better type conversion...