added getHeadObsSim function