solves #2