method extraction for readability