change parts of the main codes