stupid mistakes, now runs fine