organize old code