refactored mapped frames and vectors, now they are correct and bleeding fast