make code a little cleaner