better style of coding