split code for readable