fix #2: use prop method instead of attr