removed ended warnings