resurrected usefull code