worked on hillConstantsLHS.R