writing done. Debug now