nsec method was used instead to_i method.