edited logic style syntax