stable version with correct aligning