fixed bug in clip
updated revision