extract constants and method