make function static