I changed the way functions are called