defined data directory as a constant