getting parents sha method