Man I wish there was a more compact way to do this