calculate object size
calculate object size