almost finished phase 1