initial code done, just debugging