removed bug from (unused) main