fixing some bugs
add script to check if vectors are cleared