rearrange methods such that they are grouped by intentions