COSMIT: remove unused import
MISC: use precomputed variable
MISC: update comment in source