work on phase 1
minor changes - global completed