tide the code