added method secure