updated signatures
made sure the vectors are emptied