small change to improve speed