use prop instead of attr