how std work