implement Erics suggestion