clean path and old codes