under working, temporary commit, modify intbuffer to shortbuffer