code initialized, in working states