fixed derp functions