reducing written code