before refactoring + maybe facecard xcode bug fix