fixed sluice and cleaned up the file some