fixed using undefined value