fix bug. return false on same length
inline loop