Added gaussian matrix but may still not be correct