added object fitting based on energy minimization