called amy's function instead of insert