main written