-made minor edits to the functionality