fixed property algorithm to avoid PHP notices