adjusted comment
changed the way the function accepts parameters