concisifying code