cleaner code and learn function
cleaner code and learn function