updated compute sh to make it work