changed the offset parameter to the secure module instead of the check method