added smalelst & largest checks