fixed bug that caused size to be off by 1