changed fucntions