adding sparse coding section