simplifying code, thanks Carlson.