just moved the code to its own method without any changes.