4th update added another function