add note on better implementation