fix feat calculation