redid oddur's fix on type (was correct)