working_version with 2 rom and signal fixed