writing sample data to sd card now working