use env and remove unused constant