replaced 'var' with ':='