refactor private frame calculation methods