ternery statement added