removed nested method