fix length method