handle const methods