added FOR loop support