i had no idea what that piece of code did