A philosophical account on mathematics