phase b done minus debugging
finished minus bugs