added attribute binding for compiling