solves #320