Changing type to size_t to get rid of warning eror message