reformatted (I think this way is clearer)