improving casts