minor typo
untested
BUT I think it will work... will test later