cutting down code