added fscatter and new way of input