added direct access code