playing with the algorithm, added style