functions created from init/minor edits