added getAttribute method to the attribute mod