Why was this a fucntion