fixed parent function origin