remove useless lines regarding Frame