casts, unused vars