change the variables to private

Signed-off-by: Liew Zhao Wei <zhaoweiliew@gmail.com>