style changes to functions