changed 'round' into 'ceil'