simplifying the code.