AMAZING WORKING CODE. STUPID GIT