tweaking casting protection