attribute constructor replacement for VS