switched raw and final. fix credit. must refactor soon :(