fixes for rock position calculation