push/remove on repeat function works