syntactic sugar implementation
improved syntactic sugar
updated Generator test for syntactic sugar and fixed minor bug