add this in function, this is the second time this is defined