changed clipping, fixed hash bug