implementation of disabled directive