modified to understand syntax better