replace constant by method call to prevent test fails