added neccessary two clock cycle delays to signals to fix offset