make methods depend on each other