make sure we do not add the function 2x