fixed bug in separation vector