adding terminals