adding created directive