add ends to atram