added xy principal stress functions