a bit prettier code.