fixed gel errors, got rid of debugging stuff