splitted add function
fixed tuple using