remove unnecessary return. make type error for 'to' assignment clearer