version 1
fixed drain bug