redundant calculation removed