updated step definitions to use built-in methods.