remove unnecessary type conversion, style fix