I think this should work once I figure out why it's giving me a null error