added object offset correction, object handling loop and object plot