making function static