added setFrame