not working, semantic checking for attributes