worked alittle on psuedo