relay attached not working