fxruby code added. doesn't work :(