added methods to retrieve first, next and last phase