common script for separating added