use a little less code