another nasty solution