gutted the code