added prototype declaratio in phase.h