adding static to functions, adding null to return