using prop instead of attr