trying to make some nicer looking code