work continued from code for phily