updated to work on ST3