added hems and variables