added ball directional feature