switched function declaration style in engine modules