Security changes+cart func