add codes for frame objects