fixed type argument for attr* and add a rule for pointers