removed unwanted end