change method signature to match rails