edits before jquery functions