renamed a function to add redeability