refactor frame helper