added lightning and orthogonal projection