updated for alignment in .cpp file