solved 407 (basically identical to 451)