reverting one function didnt work