fixed if for rocksol