make length as int