better use of framework