adding proper attributes