added volume on lua function