added startpoint for casting.