added secure portion