removed extra casts