added function
added description
added more comments