more work on phases