update for object lay out system with samples

These two functions are mismatch.