move initial_attributes into layer