finding issues with the code i – someone else – wrote