fixed R and calc register