used actual variable instead of deprecated