moved defaultattributes to behavior