I now can compact my code