check length, something wrong here