added syntax modification based on platfom