adding a remove_at function