making changes to directive