refactor defintion of prop in root