stan code added