top five function working.