reduce lines for code