comments and defining everything out
renamed function