helpers for arduino code