a little faster and cleaner code.