moved cone calculation to projection function