fixes code