minor improvements

- moving #attributes= to abstract class
- removing old unnecessary nil check