cleared unnecessary var casts