need to clear the code to make it synthesizable

Code is functionally working right now